package com.soft.javase.day02.practice.override;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/16
 */
public class Director extends Employee {
    private double allowance;

    public Director(String name, String address, double baseSalary, double allowance) {
        super(name, address, baseSalary);
        this.allowance = allowance;
    }

    public double getAllowance() {
        return this.allowance;
    }

    public void setAllowance(double allowance) {
        this.allowance = allowance;
    }

    @Override
    public void show() {
        System.out.println("董事基本信息：");
        System.out.println("姓名：" + this.getName());
        System.out.println("地址：" + this.getAddress());
        System.out.println("基本工资：" + this.getBaseSalary());
        System.out.println("交通补助：" + this.allowance);
    }
}